package com.zl.design.bridge.model;

import com.zl.design.bridge.service.IPayMode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.math.BigDecimal;

/**
 * @Author: zhang lei
 * @Describe: All things are difficult before they are easy.
 * @CreatTime: 2020-12-25-19-49
 */
public abstract class Pay {
    //添加日志
    Logger logger = LoggerFactory.getLogger(Pay.class);

    //支付类型接口
    protected IPayMode payMode;

    public Pay(IPayMode iPayMode) {
        this.payMode = iPayMode;
    }

    /**
     * 支付行为抽象方法
     * 通过传入的字符类型参数来构建具体的支付模式
     * @param uId
     * @param tradeId
     * @param amout
     * @return
     */
    public abstract String transfer(String uId, String tradeId , BigDecimal amout);
}
